package cn.ztuo.bitrade.service;

import cn.ztuo.bitrade.dao.MemberVipDao;
import cn.ztuo.bitrade.entity.MemberVip;
import cn.ztuo.bitrade.service.Base.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberVipService extends BaseService<MemberVip> {

    @Autowired
    private MemberVipDao memberVipDao;
    @Autowired
    private MemberService memberService;
    @Autowired
    private CesspitRecordService cesspitRecordService;

    public MemberVip save(MemberVip memberVip) {
        return memberVipDao.saveAndFlush(memberVip);
    }

    public MemberVip findOne(Long id) {
        return memberVipDao.findOne(id);
    }

    public List<MemberVip> findAll() {
        return memberVipDao.findAll();
    }


}
